package Coffee.service;

import Coffee.bean.Coffee;
import Coffee.bean.Result;

import java.util.List;

public interface CoffeeService {
    Result insertCoffee(Coffee coffee);//添加
    int delbyname(String cofname);//删除饮品
    Coffee selectbyname(String cofname);//查询
    int updateCofbyname(String cofname,int cofprice,String state);//修改价格或者状态
    List<Coffee> selectlikaname(String cofname);//模糊查询
    List<Coffee> selectAll(String cofName, int pageIndex, int pageSize);//查询所有

    int getCount(String cofName);

    Coffee getCofById(String cofId);

    Result updateCof(Coffee coffee);

    Result delbyId(String id);

    List<Coffee> getAll();


}
